﻿using System.Collections.Generic;

namespace RHD.Common.Web.Components.Accordion {
	public class AccordionItems {
		private IList<AccordionItemBuilder> Items { get; set; }

		public AccordionItems() {
			this.Items = new List<AccordionItemBuilder>();
		}

		#region Methods

		public AccordionItemBuilder Add(string label) {
			AccordionItemBuilder item = new AccordionItemBuilder();
			item.Label(label);
			this.Items.Add(item);
			return item;
		}

		public IList<AccordionItemBuilder> GetItems() {
			return this.Items;
		}

		#endregion
	}
}